<template>
	<view class="uni-padding-wrap">
		<view class="content">
			<view class="title">
				{{$t('Page.component.tjfa')}}
			</view>
			<view class="tab_box">
				<view :class="['tab_item',tabCurrent==index?'tab_active':'']" v-for="(item,index) in tabList"
					@tap="tabCurrent=index" :key="index">
					<view class="">
						<uni-icons :type="item.icon" size="25" color="#fff"></uni-icons>
						<view class="tab_text">{{item.text}}</view>
					</view>
				</view>
			</view>
			<view class="main">
				<view class="partner">
					<view class="partner_l">
						<view class="partner_l_content">
							<view class="partner_l_title">
								{{$t('Page.component.yqhzhb')}}
							</view>
							<view class="partner_text">{{$t('Page.component.yqwz')}}</view>
							<view class="uni-flex">
								<view class="link">https://panda05.com</view>
								<view class="copy"><uni-icons type="wallet" size="20" color="#fff"></uni-icons></view>
							</view>
							<view class="partner_text">{{$t('Page.component.fxfs')}}</view>
							<view class="partner_share">
								<image src="../../../static/logo.png" mode=""></image>
								<image src="../../../static/logo.png" mode=""></image>
								<image src="../../../static/logo.png" mode=""></image>
							</view>
						</view>
					</view>
					<view class="partner_r">
						<view class="partner_r_top">
							<view class="">
								<view class="">{{$t('Page.component.yqyh')}}</view>
								<view class="invite_num">
									0
								</view>
							</view>
							<view class="">
								<view class="">{{$t('Page.component.yqyh')}}</view>
								<view class="invite_num">
									0
								</view>
							</view>
							<view class="">
								<view class="">{{$t('Page.component.yqyh')}}</view>
								<view class="invite_num">
									0
								</view>
							</view>
							<view class="">
								<view class="">{{$t('Page.component.yqyh')}}</view>
								<view class="invite_num">
									0
								</view>
							</view>
						</view>
						<view class="partner_r_bottom cardBg">
							<view class="trophy">
								<image src="../../../static/image/leaderboard.png" mode=""></image>
							</view>
							<view class="goal">
								<view class="">{{$t('Page.component.mysrmb')}}</view>
								<view class="">BRL 25</view>
								<view class="">{{$t('Page.component.ddmbzq')}}</view>
							</view>
						</view>
					</view>
				</view>
				<view class="title title-center">
					{{$t('Page.component.yqjjrhyz')}}
				</view>
				<view class="cardBg card">
					<view class="card-text-c">
						<view class="">{{$t('Page.component.yqjj')}}</view>
						<view class="grey">
							{{$t('Page.component.mgczyh')}}
							<span class="yellow">15</span>
							{{$t('Page.component.mcyqrsyd')}}
						</view>
					</view>
					<view class="grid">
						<view class="row">
							<view class="row-item">
								{{$t('Page.component.ljczyh')}}
							</view>
							<view class="row-item user-num" v-for="item,index in 6" :key="'row' + index">
								<view class="">1-9</view>
								<view class="">{{$t('Page.component.ren')}}</view>
							</view>
						</view>
						<view class="row">
							<view class="row-item">
								{{$t('Page.component.jj')}}
							</view>
							<view class="row-item bonus-num" v-for="item,index in 6" :key="'row' + index">
								<view class="">BRL 18</view>
								<view class="">{{$t('Page.component.mr')}}</view>
							</view>
						</view>
					</view>
				</view>
				<view class="title title-center">
					{{$t('Page.component.rhhdtzyj')}}
				</view>
				<view class="cardBg bet grey">
					<view class="">
						{{$t('Page.component.zjsndcqsr')}}
					</view>
					<view class="">
						{{$t('Page.component.jjgz')}}
					</view>
					<view class="">
						{{$t('Page.component.sgjbdbl')}}
					</view>
					<view class="">
						·Level 1：{{$t('Page.component.hd')}} <span class="yellow">35%</span>
						{{$t('Page.component.ptys')}}
					</view>
					<view class="">
						·Level 2：{{$t('Page.component.hd')}} <span class="yellow">20%</span>
						{{$t('Page.component.ptys')}}
					</view>
					<view class="">
						·Level 3：{{$t('Page.component.hd')}} <span class="yellow">10%</span>
						{{$t('Page.component.ptys')}}
					</view>
					<view class="betbg">
						<image src="../../../static/image/betBg.png" mode="aspectFit"></image>
					</view>
					<view class="row">
						<view class="row-item bet-item">
							<image src="../../../static/image/relation.png" mode="aspectFit"></image>
						</view>
						<view class="row-item bet-item">
							<view class="title">
								{{$t('Page.component.srjsq')}}
							</view>
							<view class="yellow">
								BRL 3000
							</view>
							<view class="grey">
								{{$t('Page.component.srjsqws')}}
							</view>
							<view class="slider">
								<slider :value="value" max="600000" @change="sliderChange" block-size="20" step="60"
									activeColor="#1976D2" backgroundColor="#1D1D1D" block-color="#1976D2" />
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				tabCurrent: 0,
				tabList: [{
						icon: 'wallet',
						text: this.$t('Page.component.yq')
					},
					{
						icon: 'wallet',
						text: this.$t('Page.component.tjsj')
					},
					{
						icon: 'wallet',
						text: this.$t('Page.component.xs')
					}
				],
				value: 100
			}
		},
		methods: {
			sliderChange(e) {
				console.log('value 发生变化：' + e.detail.value)
			}
		}
	}
</script>

<style>
	.yellow {
		padding: 0 5px;
		color: #ffeb3b;
		font-weight: 700;
	}

	.grey {
		color: #adadc2;
	}

	.title {
		font-size: 20px;
		font-weight: 700;
	}

	.title-center {
		text-align: center;
		padding-top: 24px;
		padding-bottom: 12px;
	}

	.tab_box {
		width: 100%;
		height: 100px;
		background: linear-gradient(180deg, #2d3035, #1c1e22);
		vertical-align: middle;
		box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
		display: flex;
		align-items: center;
		justify-content: space-around;
		flex-wrap: nowrap;
		margin-top: 45rpx;
		border-radius: 14px;
		overflow: hidden;
	}

	.tab_item {
		/* border-radius: inherit; */
		width: calc(100% / 3);
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		/* #ifdef H5 */
		/* min-height: 2.572em; */
		cursor: pointer;
		/* #endif */
		transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.5, 1);
	}

	.tab_item:hover {
		background: linear-gradient(180deg, #656e78, #1c1e22);
	}

	.tab_active {
		background: linear-gradient(180deg, #656e78, #1c1e22);
	}

	.tab_text {
		margin-left: 5px;
		font-size: 28rpx;
	}

	.main {
		background: #242a32;
		padding: 16px;
		margin-top: 10px;
		border-radius: 20px;
	}

	.partner {
		display: flex;
		justify-content: space-between;
	}

	.partner_l {
		width: 33%;
		background: linear-gradient(180deg, #1e2024, #33c38f);
		padding: 16px 0;
		/* margin-right: 16px; */
		display: flex;
		flex-wrap: wrap;
		flex-direction: column;
		border-radius: 10px;
	}

	.partner_l_content {
		padding: 0 16px;
	}

	.partner_l_title {
		font-weight: 700;
		font-size: 20px;
	}

	.partner_text {
		padding-top: 16px;
	}

	.partner_share {
		margin-top: 16px;
	}

	.partner_share>image {
		height: 48px;
		width: 48px;
		margin-right: 4px;
	}

	.uni-flex {
		margin-top: 5px;
	}

	.link {
		padding-left: 10px;
		border: 2px dashed #2B333B;
		height: 40px;
		line-height: 40px;
		border-radius: 5px;
		flex: 1;
		/* width: 100%; */
	}

	.link:hover {
		border-color: #000;
	}

	.copy {
		width: 45px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 5px;
		background: transparent;
		box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
	}

	.copy:hover {
		background: rgba(0, 0, 0, 0.1);
		transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.5, 1);
	}

	.partner_r {
		width: 65%;
	}

	.partner_r_top {
		background: #1e2024;
		border-radius: 5px;
		font-weight: 700;
		color: #fff;
		display: flex;
		justify-content: space-around;
		flex-wrap: wrap;
	}

	.partner_r_top>view {
		width: 25%;
		text-align: center;
		padding: 16px 0;
	}

	.invite_num {
		margin: auto;
		width: 50px;
		height: 50px;
		border-radius: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #242a32;
		margin-top: 8px;
	}

	.partner_r_bottom {
		border-radius: 10px;
		padding: 16px 0;
		margin-top: 16px;
		display: flex;
	}

	.cardBg {
		background: linear-gradient(95deg, #1e2024, #33c38f);
		border-radius: 10px;
	}

	.card-text-c {
		text-align: center;
		font-size: 16px;
	}

	.card-text-c>view:nth-child(2) {
		margin-top: 4px;
	}

	.trophy {
		width: 33%;
		display: flex;
		justify-content: center;
		align-self: center;
	}

	.trophy>image {
		width: 100px;
		height: 114px;
	}

	.goal {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		padding-right: 16px;
	}

	.goal>view:nth-child(1) {
		font-size: 20px;
		font-weight: 700;
	}

	.goal>view:nth-child(2) {
		color: #ffeb3b;
		font-size: 16px;
		font-weight: 700;
		margin: 5px 0;
	}

	.goal>view:nth-child(3) {
		color: #adadc2;
		font-size: 15px;
	}

	.card {
		padding: 4px;
	}

	.grid {
		display: flex;
		flex-wrap: wrap;
		flex-direction: column;
		justify-content: space-between;
	}

	.row {
		margin-top: 16px;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.row-item {
		background: #1e2024;
		width: 11%;
		border-radius: 10px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 8px;
	}

	.user-num>view:nth-child(1) {
		color: #ff9800;
	}

	.bonus-num>view:nth-child(1) {
		color: #fce90b;
	}

	.bet {
		position: relative;
		padding: 16px;
		margin-top: 8px;
		font-size: 18px;
	}

	.bet>view {
		/* height: 27px; */
		line-height: 27px;
	}

	.bet>view:last-child {
		margin-top: 24px;
	}

	.bet>view:nth-child(1),
	.bet>view:nth-child(2) {
		width: 80%;
	}

	.betbg {
		position: absolute;
		top: 0;
		right: 0;
		width: 33%;
	}

	.betbg>image {
		width: 100%;
	}

	.bet-item {
		padding: 16px;
		width: calc(50% - 40px);
		height: auto;
	}

	.bet-item>image {
		width: 100%;
	}

	.bet-item:first-child {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}

	.slider {
		width: 80%;
	}

	/deep/ uni-slider .uni-slider-handle-wrapper {
		height: 4px !important;
	}

	@media screen and (max-width: 768px) {
		.tab_box {
			height: 80px;
		}

		.main {
			padding: 8px;
		}

		.partner {
			flex-direction: column;
		}

		.partner_l {
			width: 100%;
		}

		.partner_r {
			width: 100%;
		}

		.partner_r_top {
			margin-top: 16px;
		}

		.partner_r_top>view {
			width: 50%;
		}

		.grid {
			flex-direction: row !important;
		}

		.row {
			width: 48%;
		}

		.row-item {
			width: 100%;
			padding: 0;
			height: 55px;
			flex-direction: row;
			margin-top: 16px;
			justify-content: space-around;
		}

		.title-center {
			text-align: left;
		}

		.bet>.row {
			width: 100%;
		}
	}
</style>